﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="SinsenWeb.Views.Instrument.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<h2>Instrumenter</h2>
<table>
    <thead>
        <tr>
            <th>Id</th> 
            <th>Instrumentnavn</th>
            <th>Rediger</th>
            <th>Slett</th>
        </tr>
    </thead>
    <tbody>
        <% foreach (var instrument in Instruments){ %>
            <tr>
                <td><%= instrument.Id %></td>
                <td><%= H(instrument.Name) %></td>
                <td><%= Html.EditImageLink("Instrument", instrument.Id) %></td>
                <td><%= Html.DeleteForm("Instrument",instrument.Id) %></td>
            </tr>
        <% } %>
    </tbody>
</table>
        <%= Html.ActionLink("Legg til","New") %>
        
        
</asp:Content>
